package com.czg.designmode.factory.simple;

/**
 * 水果-梨
 *
 * @author chenzhigang
 */
public class Pear implements Fruit {

    /**
     * 吃
     */
    @Override
    public void eat() {
        System.out.println("eating pear......");
    }

    /**
     * 颜色
     */
    @Override
    public void color() {
        System.out.println("the color is green!");
    }
}
